package com.burmagateway.service.impl;

import com.burmagateway.service.TourPackageService;
import com.burmagateway.model.TourPackage;
import com.burmagateway.dao.TourPackageDAO;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class TourPackageServiceImpl implements TourPackageService {

	@Autowired
	private TourPackageDAO tourPackageDAO;

	@Transactional
	public void addTourPackage(TourPackage tourPackage) {
		tourPackageDAO.addTourPackage(tourPackage);
	}

	@Transactional
	public List<TourPackage> listTourPackages() {

		return tourPackageDAO.listTourPackages();
	}

	@Transactional
	public void removeTourPackage(Integer id) {

		tourPackageDAO.removeTourPackage(id);
	}

}
